home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18467 < prev    next >
Encoding:
Text File  |  1996-08-05  |  904 b   |  22 lines

  1. Newsgroups: comp.lang.c++
  2. Path: undergrad.math.uwaterloo.ca!sckettle
  3. From: sckettle@undergrad.math.uwaterloo.ca (Steve Kettle)
  4. Subject: object construction
  5. Sender: news@undergrad.math.uwaterloo.ca (news spool owner)
  6. Message-ID: <Dq6GyF.8AI@undergrad.math.uwaterloo.ca>
  7. Date: Sat, 20 Apr 1996 20:30:15 GMT
  8. Nntp-Posting-Host: noether.math.uwaterloo.ca
  9. Organization: University of Waterloo
  10.  
  11. Hi suppose that the memory for an object has been allocated but the 
  12. constructor has not been called on that memory.  Is is still defined 
  13. behaviour to call member functions of that object even though the 
  14. constructor has not been called yet ?
  15.  
  16. Second question is suppose you have a class with a default constructor and
  17. only built in types for members.  Is it possible that calling the default
  18. constructor will change any of these values - after they have had their
  19. intial values set when they were allocated. 
  20.  
  21. -- 
  22.